import { get } from "@/axios/utils";

let b3v1 = "/5041/serviceApiGeneration/freeApi/ga_rkk"; // 综合人口库
let b3v2 = "/5041/serviceApiGeneration/freeApi/ga_frk"; // 综合法人库
let b3v3 = "/7006/dgms-analysis/getTaskAnalysisResult?resultType=21"; // 信用信息库
let b3v4 = "/7006/dgms-analysis/getTaskAnalysisResult?resultType=07"; // 电子证照库

let b1v1 = "/5041/serviceApiGeneration/freeApi/mlzl"; //小屏-总览-目录总量
let b1v2 = "/5041/serviceApiGeneration/freeApi/zyzl"; //小屏-总览-资源总量
let b1v3 = "5041/serviceApiGeneration/freeApi/fwzl"; //小屏-总览-服务总量
let b1v4 = "5041/serviceApiGeneration/freeApi/sbsjmlzl";  //小屏-总览-上级省级目录数
let b1v5 = "5041/serviceApiGeneration/freeApi/sjsjzys"; //小屏-总览-上级省级资源数
let b1v6 = "5041/serviceApiGeneration/freeApi/dyzl"; //小屏-总览-被订阅资源总数

let c4v1 = "7006/egovdg-screen/#/dataService"; //小屏-总览-数据类型占比
let c5v1 = "5041/serviceApiGeneration/freeApi/gpml5"; //小屏-总览-高频目录

let b6v1 = "5041/serviceApiGeneration/freeApi/dyzl"; //小屏-总览-被订阅资源总数

let API = {
  //第一个盒子的数据
  getBox1_v1: () => get(b1v1),
  getBox1_v2: () => get(b1v2),
  getBox1_v3: () => get(b1v3),
  getBox1_v4: () => get(b1v4),
  getBox1_v5: () => get(b1v5),
  getBox1_v6: () => get(b1v6),
  //第三个盒子的数据
  getBox3_v1: () => get(b3v1),
  getBox3_v2: () => get(b3v2),
  getBox3_v3: () => get(b3v3),
  getBox3_v4: () => get(b3v4),

  //第四个图表数据类型占比数据
  getChart4_v1: () => get(c4v1),

  //第五个图表Top5的数据
  getChart5_v1:() => get(c5v1),

  //第六个盒子的数据
  getBox6_v1: () => get(b6v1),
};

export default API;
